Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pageserver: only zero truncated FSM page on owning shard #10032

Merged
merged 1 commit into from
Dec 6, 2024

Conversation

erikgrinaker
Copy link
Contributor

Problem

FSM pages are managed like regular relation pages, and owned by a single shard. However, when truncating the FSM relation the last FSM page was zeroed out on all shards. This is unnecessary and potentially confusing.

The superfluous keys will be removed during compactions, as they do not belong on these shards.

Resolves #10027.

Summary of changes

Only zero out the truncated FSM page on the owning shard.

@erikgrinaker erikgrinaker requested a review from a team as a code owner December 5, 2024 19:11
@erikgrinaker erikgrinaker requested a review from arssher December 5, 2024 19:11
Copy link

github-actions bot commented Dec 5, 2024

7040 tests run: 6732 passed, 0 failed, 308 skipped (full report)


Flaky tests (5)

Postgres 16

Postgres 15

Code coverage* (full report)

  • functions: 31.4% (8322 of 26472 functions)
  • lines: 47.8% (65409 of 136887 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
8eb53f8 at 2024-12-05T20:08:52.900Z :recycle:

@erikgrinaker erikgrinaker added this pull request to the merge queue Dec 6, 2024
Merged via the queue into main with commit 56f867b Dec 6, 2024
84 checks passed
@erikgrinaker erikgrinaker deleted the erik/fsm-zero-shard branch December 6, 2024 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pageserver: misrouted FSM key
2 participants